package D2;

public class Test {
    public static void main(String[] args)
            throws CloneNotSupportedException{
        Person person1 = new Person("wugang",55);
        Person person2 = new Person("wujun",66);
        Person person3 = (Person) person1.clone();
        System.out.println(person1.equals(person3));//克隆的
        System.out.println(person1.equals(person2));
        System.out.println("================");
        System.out.println(person1.hashCode());
        System.out.println(person2.hashCode());
        System.out.println(person3.hashCode());
    }
}
